package com.as.util;

import java.util.LinkedList;
import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author Juan Carlos
 * @version 1.0
 * @created 08-may-2010 11:11:07 p.m.
 */
public class Resources {

	/**
	 * Lista ordenada de los recursos bundles insertados.
	 */
	protected static LinkedList<ResourceBundle> bundles = new LinkedList<ResourceBundle>();

	public Resources(){

	}

	public void finalize() throws Throwable {

	}

	/**
	 * Retorna un bundles.
	 * @return Retorna un bundles.
	 */
	public static LinkedList<ResourceBundle> getBundles(){
		return null;
	}

	/**
	 * Sets un bundles.
	 * 
	 * @param bundles    de bundles.
	 */
	public static void setBundles(LinkedList<ResourceBundle> bundles){

	}

	/**
	 * Agrega un recurso bundle.
	 * 
	 * @param basename    El nombre del recurso a agregarse(ruta).
	 */
	public static void add(String basename){

	}

	/**
	 * Agrega un recurso bundle.
	 * 
	 * @param basename    El nombre del recurso a agregarse(ruta).
	 * @param locale    Localidad del idioma
	 */
	public static void add(String basename, Locale locale){

	}

	/**
	 * 
	 * @param key
	 */
	public static String get(String key){
		return "";
	}

	/**
	 * 
	 * @param key
	 * @param defaultValue
	 */
	public static String get(String key, String defaultValue){
		return "";
	}

	/**
	 * Returns the value for the specified resource key.
	 * 
	 * @param key
	 * @param params
	 */
	public static String get(String key, String[] params){
		return "";
	}

	/**
	 * Returns the value for the specified resource key.
	 * 
	 * @param key
	 * @param params
	 * @param defaultValue
	 */
	public static String get(String key, String[] params, String defaultValue){
		return "";
	}

	/**
	 * Returns the value for <code>key</code> by searching the resource bundles in
	 * inverse order or <code>null</code> if no value can be found for
	 * <code>key</code>.
	 * 
	 * @param key
	 */
	protected static String getResource(String key){
		return "";
	}

}